# $OpenBSD: Makefile,v 1.10 2015/05/28 10:17:31 pascal Exp $

COMMENT =	graph theory IDE for KDE
DISTNAME =	rocs-${MODKDE4_VERSION}
REVISION =	1

# XXX Crashes sometimes.

#SHARED_LIBS =	rocslib			0.0 # 4.7
SHARED_LIBS =	rocscore		50.0 # 4.10
SHARED_LIBS +=	rocsvisualeditor	50.0 # 4.10

WANTLIB =  c m pthread
WANTLIB += lib/qt4/QtDBus lib/qt4/QtGui lib/qt4/QtNetwork
WANTLIB += lib/qt4/QtScript lib/qt4/QtScriptTools lib/qt4/QtSvg
WANTLIB += lib/qt4/QtWebKit lib/qt4/QtXml lib/qt4/QtXmlPatterns
WANTLIB += ${KDE4LIB}/kdeui ${KDE4LIB}/kio ${KDE4LIB}/knewstuff3
WANTLIB += ${KDE4LIB}/kparts ${KDE4LIB}/krosscore ${KDE4LIB}/krossui
WANTLIB += ${KDE4LIB}/ktexteditor ${KDE4LIB}/nepomuk
WANTLIB += ${KDE4LIB}/nepomukutils ${KDE4LIB}/plasma
WANTLIB += grantlee_core soprano

BUILD_DEPENDS =	devel/boost>=1.49

RUN_DEPENDS =	devel/desktop-file-utils \
		x11/gtk+3,-guic

LIB_DEPENDS =	x11/grantlee

# XXX Ugly hack until CMake or rocs, whatever, could be fixed.
#LOST_LIBS =	rocs_GraphStructure rocs_ListStructure
#post-configure:
#.for _l in ${LOST_LIBS}
#	cd ${WRKBUILD}/lib && ln -s {,lib}${_l}.so
#.endfor

.include <bsd.port.mk>
